package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取各大交易所交易日历数据,默认提取的是上交所
* @author: codesmith
**/
public interface TradeCalBean extends BaseBean {
    String API_NAME = "trade_cal";
    
    interface Fields {
    String exchange = "exchange";    //交易所 SSE上交所 SZSE深交所
    String cal_date = "cal_date";    //日历日期
    String is_open = "is_open";    //是否交易 0休市 1交易
    String pretrade_date = "pretrade_date";    //上一个交易日
    }
    
    interface Params {
        exchange exchange = new exchange();
        /*
        * 交易所 SSE上交所,SZSE深交所,CFFEX 中金所,SHFE 上期所,CZCE 郑商所,DCE 大商所,INE 上能源
        */
        class exchange extends BaseRequestParam {
            { key = "exchange"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期 （格式：YYYYMMDD 下同）
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        is_open is_open = new is_open();
        /*
        * 是否交易 &#39;0&#39;休市 &#39;1&#39;交易
        */
        class is_open extends BaseRequestParam {
            { key = "is_open"; }
        }
    }
}